package day0429.com.listSetMAp;/*
 * @创建者：黄苟苟
 * @创建时间：2021/4/29   9:59
 * @Description描述
 **/

import java.util.ArrayList;

public class ArrayListTest {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList=new ArrayList <>();
        arrayList.add(1);
        arrayList.add(2);

        arrayList.set(0,5);

        ArrayList arrayList2=new ArrayList();

        arrayList2.add(4);
        arrayList2.add(5);
        System.out.println(arrayList2);

        arrayList2.addAll(1,arrayList);
        System.out.println(arrayList2);
        System.out.println(arrayList2.contains(5));
    }
}
